//
//  MenuXiangyiXiangkeModel.m
//  Products_B
//
//  Created by lanou on 16/6/1.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuXiangyiXiangkeModel.h"

@implementation MenuXiangyiXiangkeModel
+ (NSMutableArray *)modelXiangyiWithDic:(NSDictionary *)jsonDic{
    NSMutableArray *modelArray = [NSMutableArray array];
    NSArray *suitable_withArray = jsonDic[@"data"][@"material"][@"suitable_with"];
    for (NSDictionary *suitable_withDic in suitable_withArray) {
        MenuXiangyiXiangkeModel *model = [[self alloc]init];
        [model setValuesForKeysWithDictionary:suitable_withDic];
        [modelArray addObject:model];
    }
    return modelArray;
}
+ (NSMutableArray *)modelXinagkeWithDic:(NSDictionary *)jsonDic{
     NSMutableArray *modelArray = [NSMutableArray array];
    NSArray *suitable_not_withArray = jsonDic[@"data"][@"material"][@"suitable_not_with"];
    for (NSDictionary *suitable_not_withDic in suitable_not_withArray) {
        MenuXiangyiXiangkeModel *model = [[self alloc]init];
        [model setValuesForKeysWithDictionary:suitable_not_withDic];
        [modelArray addObject:model];
    }
    return modelArray;
}
@end
